<!DOCTYPE html>
<html>
<head>
    <title>设置</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            padding: 20px;
            padding-top: 40px;
        }
        .setting-item {
            margin-bottom: 20px;
        }
        .setting-item label {
            display: block;
            margin-bottom: 5px;
        }
        .setting-item input {
            padding: 5px;
            width: 200px;
        }
        button {
            padding: 8px 15px;
            background-color: #409eff;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        button:hover {
            background-color: #66b1ff;
        }
        .close-button {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
            padding: 5px 10px;
            background: #ff4d4f;
            color: white;
            border: none;
            border-radius: 4px;
        }
        .close-button:hover {
            background: #ff7875;
        }
        /* 添加滚动条样式 */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
    </style>
</head>
<body>
    <h2>设置</h2>
    <div class="setting-item">
        <label>数据刷新间隔（秒）</label>
        <input type="number" id="refreshInterval" min="1" value="5">
    </div>
    <div class="setting-item">
        <label>主题</label>
        <select id="theme">
            <option value="light">浅色</option>
            <option value="dark">深色</option>
        </select>
    </div>
    <button onclick="saveSettings()">保存</button>

    <script>
        function saveSettings() {
            // 保存设置逻辑
            const interval = document.getElementById('refreshInterval').value
            const theme = document.getElementById('theme').value
            // TODO: 实现设置保存逻辑
            window.close()
        }
    </script>
</body>
</html> 